import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
import Vue from 'vue'
import { UI_CACHE_DB_DICT_DATA } from '@/store/mutation-types'
import { axios } from '@/utils/request'
import { serviceApi } from '@/api/common.js'
/**
 * 公共API接口
 */
export const api = {
  list: serviceApi.auth + '/data-rules',
  delete: (ids) => serviceApi.auth + `/data-rules/${ids}`
}

/**
 * 添加数据权限
 * @param {*} params
 * @returns
 */
export const addDataRule = params => postAction(serviceApi.auth + '/data-rules', params);

/**
 * 编辑数据权限
 * @param {*} params
 * @returns
 */
export const editDataRule = params => putAction(serviceApi.auth + '/data-rules', params);
